package cn.com.ustudy.course.core.comp.service;

import cn.com.ustudy.course.core.model.entity.ScalarEntity;
import cn.melonlib.cores.commons.comp.service.impl.WorkerBasicService;
import cn.melonlib.cores.jpa.model.bean.collections.JsonMap;
import cn.melonlib.cores.model.anno.*;
import org.springframework.stereotype.Service;

@WorkerService(
         module= "scalar"
        , model= @WorkerModel(
                modelType = ScalarEntity.class
)
)
@Service
@WorkerComment("基础类型测试")
public class ScalarService extends WorkerBasicService<ScalarEntity> {

    @WorkerQuery
    @WorkerComment("测试scalar")
    public String testSearcher(@WorkerParameter(value = "filter",comment = "过滤条件",required = true) JsonMap<Object> filter,
                               @WorkerParameter(value = "now",comment = "当前时间",required = true) Long now){
        System.out.println(filter);
        System.out.println(now);
        return "success";
    }
}
